package com.mpyy.service.purchase;

import com.mpyy.pojo.*;

import java.util.List;

/**
 * @version 1.0
 * @Description PurchaseReturnServiceInter
 * @Author liangxinyu
 * @Date 2022-03-09 13:56
 */
public interface PurchaseReturnServiceInter {

    /* --------------------------------------------purchase_return.html-------------------------------------------- */

    /* 供货商信息查询 */
    List<SupplierInfo> searchSupplierInfo();

    /* 出货仓库 */
    List<DepotInfo> searchDepotInfo();

    /* 供货商类型表查询 */
    List<AddSupplierType> searchSupplierType();

    /* 供货商类型 + 默认选择 */
    int doUpdateSupplierType(AddSupplierType addSupplierType);

    /* 经办人 */
    List<EmployeeInfo> searchHandler();

    /* 生成采购退货单、采购退货详情单、修改库存明细表、新增库存变动 */
    Boolean doUpdateMultipurpose(PurchaseReturn pr, List<PurchaseReturnDesc> prd, List<InventoryDesc> ids, List<InventoryChange> ic);


    /* --------------------------------------------add_commodity.html-------------------------------------------- */

    /* 添加退货商品 */    /* 商品批次信息 数据表   查询 */
    List<InventoryDesc> addReturnedInfoBtn(String depotId, String supId, String proId, String signProList, String idOrName,String proTypeId);


    /* --------------------------------------------原始单号-------------------------------------------- */
    List<PurchaseStock> seachOriginalOrderNumber(String startDate, String endDate);

    /*  根据进货单号   搜索商品*/
    List<PurchaseStockDesc> seachToCommodityByOrder(String purStoId);
}
